home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / Aminet / util / wb / SetFPVars.lha / SetFPVars / InstallMe next >
Text File  |  2002-04-30  |  3KB  |  159 lines

  1.  
  2. ; $VER: InstallMe V1.0 by Nightshade (30.04.2002)
  3.  
  4.  
  5. assign InstallMe: ""
  6.  
  7. echo "Wähle deine Sprache aus!*NChoose your language!"
  8. echo "[D]eutsch - [E]nglish - [x] = Ende/Quit: " noline
  9.  
  10. InstallMe:Bin/readstr >env:lang
  11.  
  12. if $lang
  13.     if $lang eq d
  14.         skip start_inst
  15.     endif
  16.  
  17.     if $lang eq e
  18.         skip start_inst
  19.     else
  20.         echo "Falsche Eingabe..."
  21.         echo "Input was wrong..."
  22.         skip end
  23.     endif
  24. else
  25.     echo "Nix gewählt!*NNothing selected!"
  26.     skip end
  27. endif
  28.  
  29.  
  30. lab start_inst
  31.     if $lang not eq x
  32.         if $lang eq d
  33.             echo "[I]nstallieren oder [D]einstallieren? " noline
  34.             InstallMe:Bin/readstr >env:mode
  35.             if $mode
  36.                 if $mode eq i
  37.                     skip install_de
  38.                 endif
  39.  
  40.                 if $mode eq d
  41.                     skip deinstall_de
  42.                 else
  43.                     echo "Falsche Eingabe..."
  44.                     skip end
  45.                 endif
  46.             else
  47.                 echo "Abgebrochen..."
  48.                 skip end
  49.             endif
  50.         endif
  51.  
  52.         if $lang eq e
  53.             echo "[I]nstall oder [U]einstall? " noline
  54.             InstallMe:Bin/readstr >env:mode
  55.             if $mode
  56.                 if $mode eq i
  57.                     skip install_eng
  58.                 endif
  59.  
  60.                 if $mode eq u
  61.                     skip deinstall_eng
  62.                 else
  63.                     echo "Input was wrong..."
  64.                     skip end
  65.                 endif
  66.             else
  67.                 echo "Abort..."
  68.                 skip end
  69.             endif
  70.         endif
  71.     else
  72.         echo "Installation abgebrochen*NInstallation canceled"
  73.         skip end
  74.     endif
  75.  
  76.  
  77. lab install_de
  78.     echo "Kopiere nach Sys:Prefs/"
  79.  
  80.         copy InstallMe:Progs/SetFPVars to Sys:Prefs/ clone
  81.         copy InstallMe:Icon/Palette.info to Sys:Prefs/SetFPVars.info clone
  82.         copy InstallMe:Gfx/reg#? to s: clone
  83.         copy InstallMe:Bin/coldreboot to c: clone
  84.  
  85.         ask "*"Gui4Cli*" und *"Gui*" nach C: kopieren? (y/n) "
  86.             if warn
  87.                 copy InstallMe:Bin/Gui#? to c: clone
  88.             else
  89.                 echo "*"Gui4Cli*" und *"Gui*" werden nicht kopiert."
  90.             endif
  91.  
  92.         ask "Fonts mit kopieren? (y/n) "
  93.             if warn
  94.                 copy InstallMe:Fonts/#? to Fonts: clone all
  95.             else
  96.                 echo "Fonts werden nicht kopiert."
  97.             endif
  98.  
  99.         echo "Installation beendet!"
  100.  
  101.     skip end
  102.  
  103.  
  104. lab install_eng
  105.     echo "Copy to Sys:Prefs/"
  106.  
  107.         copy InstallMe:Progs/SetFPVars_Eng to Sys:Prefs/SetFPVars clone
  108.         copy InstallMe:Icon/Palette.info to Sys:Prefs/SetFPVars.info clone
  109.         copy InstallMe:Gfx/reg#? to S: clone
  110.         copy InstallMe:Bin/coldreboot to c: clone
  111.  
  112.         ask "Copy *"Gui4Cli*" and *"Gui*" to C:? (y/n) "
  113.             if warn
  114.                 copy InstallMe:Gui#? to c: clone
  115.             else
  116.                 echo "*"Gui4Cli*" and *"Gui*" will not copied."
  117.             endif
  118.         
  119.         ask "Copying Fonts? (y/n)"
  120.             if warn
  121.                 copy InstallMe:Fonts/#? to Fonts: clone all
  122.             else
  123.                 echo "Fonts will not copied."
  124.             endif
  125.  
  126.         echo "Installation finished!"
  127.  
  128.     skip end
  129.  
  130.  
  131. lab deinstall_de
  132.     echo "Deinstalliere SetFPVars ..."
  133.     skip del
  134.  
  135.  
  136. lab deinstall_eng
  137.     echo "Deinstall SetFPVars ..."
  138.     skip del
  139.  
  140.  
  141. lab del
  142.     delete Sys:Prefs/SetFPVars#?
  143.     delete S:regsel
  144.     delete S:regunsel
  145.  
  146.  
  147. lab end
  148.     Echo "*N©2002 by Nightshade (thenightshade@freenet.de)"
  149.  
  150.     assign InstallMe: remove
  151.  
  152.     unsetenv lang
  153.     unsetenv mode
  154.     unsetenv instpath
  155.  
  156.     wait 5
  157.  
  158.     quit
  159.